﻿using SqlKata.Execution;

namespace SqlKataDemo.WebApi.Services
{
    public interface IDbFactory
    {
        QueryFactory GetFactory();
    }

    public class DbFactory : IDbFactory
    {
        private readonly QueryFactory _factory;

        public DbFactory(QueryFactory factory)
        {
            _factory = factory;
        }

        public QueryFactory GetFactory()
        {
            return _factory;
        }
    }
}
